home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #2 / Amiga Plus CD - 2004 - No. 02.iso / AmiSoft / Dev / basic / amiblitz_ful.lha / AmiBlitz2 / Install < prev    next >
Encoding:
Text File  |  2002-06-09  |  2.1 KB  |  69 lines

  1. echo "Adding assigns to *"s:user-startup*" file..."
  2. echo >> s:user-startup "assign >NIL: Blitz2: *"`cd`*""
  3. echo >> s:user-startup "assign >NIL: Blitzlibs: *"`cd`/blitzlibs*""
  4.  
  5. echo "Creating assigns for this session..."
  6. assign >NIL: Blitz2: `cd`
  7. assign >NIL: Blitzlibs: `cd`/blitzlibs
  8.  
  9. echo "Copying default prefs files to ENVARC:..."
  10. copy Prefs/ted.menus ENVARC:
  11.  
  12. echo "Copying required system libraries..."
  13. copy libs/ted.library libs:
  14. echo "(ted.library)"
  15. copy libs/lh.library libs:
  16. echo "(lh.library)"
  17.  
  18. if exists libs:wizard.library
  19.   version libs:wizard.library VERSION=42 REVISION=100 >NIL:
  20.   if warn
  21.     echo "Updating wizard.library (old one is renamed to wizard.library_old)"
  22.     if exists libs:wizard.library_old
  23.       delete libs:wizard.library_old
  24.     endif
  25.     rename libs:wizard.library libs:wizard.library_old
  26.     copy libs/wizard.library libs:
  27.   endif
  28. else
  29.   echo "Copying wizard.library to libs:"
  30.   copy libs/wizard.library libs:
  31. endif
  32.  
  33. if exists libs:disassembler.library
  34.   version libs:disassembler.library VERSION=40 REVISION=4 >NIL:
  35.   if warn
  36.     echo "Updating disassembler.library (old one is renamed to disassembler.library_old)"
  37.     if exists libs:disassembler.library_old
  38.       delete libs:disassembler.library_old
  39.     endif
  40.     rename libs:disassembler.library libs:disassembler.library_old
  41.     copy libs/disassembler.library libs:
  42.   endif
  43. else
  44.   echo "Copying disassembler.library to libs:"
  45.   copy libs/disassembler.library libs:
  46. endif
  47.  
  48. echo "Setting script protection bits for online help..."
  49. protect blitz2:redhelp/red_help +s
  50. protect blitz2:redhelp/red_help +e
  51. protect blitz2:redhelp/showexample +s
  52. protect blitz2:redhelp/showexample +e
  53.  
  54. ask "Do you want to use the German versions of AmiBlitz, PED and the online help? (y/n)"
  55. if warn
  56.   echo "German selected"
  57.   rename blitz2:AmiBlitz2 blitz2:AmiBlitz2_eng
  58.   rename blitz2:PED blitz2:PEd_eng
  59.   rename blitz2:help blitz2:help_eng.dat
  60.  
  61.   rename blitz2:AmiBlitz2_ger blitz2:AmiBlitz2
  62.   rename blitz2:PEd_ger blitz2:PEd
  63.   rename blitz2:help_de.dat blitz2:help.dat
  64. else
  65.   echo "English selected"
  66. endif
  67.  
  68. echo "Blitz is now ready for use. Close this window to finish"
  69.